<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:t="http://myfaces.apache.org/tomahawk"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:a4j="https://ajax4jsf.dev.java.net/ajax"
	xmlns:rich="http://richfaces.ajax4jsf.org/rich"
	xmlns:app="http://cni.org.br/tags"
	xmlns:c="http://java.sun.com/jstl/core">

			<h:form id="jobExperienceForm" reRender="experienceList">
				<h:messages errorClass="errorMessage" layout="table" globalOnly="true" showDetail="false" showSummary="true" />

				<h:inputHidden id="experienceId" value="#{experienceBean.currentJobExperience.experienceId}" />

				<h:panelGrid columns="3">
					<h:outputLabel for="experienceInstitutionName" value="Institution"></h:outputLabel>
					<h:inputText id="experienceInstitutionName" value="#{experienceBean.currentJobExperience.institutionName}" maxlength="254" size="35" required="true">
					</h:inputText>
					<a4j:outputPanel id="experienceInstitutionNameVal">
						<t:message for="experienceInstitutionName"></t:message>
					</a4j:outputPanel>

					<h:outputLabel for="position" value="Position"></h:outputLabel>
					<h:inputText id="position" value="#{experienceBean.currentJobExperience.position}" maxlength="30" size="35" required="true">
					</h:inputText>
					<a4j:outputPanel id="positionVal">
						<t:message for="position"></t:message>
					</a4j:outputPanel>

					<h:outputLabel for="positionDescription" value="Position description"></h:outputLabel>
					<h:inputText id="positionDescription" value="#{experienceBean.currentJobExperience.positionDescription}" maxlength="254" size="35" required="true">
					</h:inputText>
					<a4j:outputPanel id="positionDescriptionVal">
						<t:message for="positionDescription"></t:message>
					</a4j:outputPanel>

					<h:outputLabel for="startDate" value="Start date"></h:outputLabel>
					<rich:calendar id="startDate" value="#{experienceBean.currentJobExperience.startDate}" popup="true" required="true" />
					<a4j:outputPanel id="startDateVal">
						<t:message for="startDate"></t:message>
					</a4j:outputPanel>

					<h:outputLabel for="endDate" value="End date"></h:outputLabel>
					<rich:calendar id="endDate" value="#{experienceBean.currentJobExperience.endDate}" popup="true" />
					<a4j:outputPanel id="endDateVal">
						<t:message for="endDate"></t:message>
					</a4j:outputPanel>

					<h:outputLabel for="skillsUsed" value="Skills used"></h:outputLabel>
					<h:inputText id="skillsUsed" value="#{experienceBean.currentJobExperience.skillsUsed}" maxlength="254" size="35" required="true">
					</h:inputText>
					<a4j:outputPanel id="skillsUsedVal">
						<t:message for="skillsUsed"></t:message>
					</a4j:outputPanel>
				</h:panelGrid>
				<h:panelGrid columns="1" width="10%">
					<h:commandButton title="save" value="Save" action="#{experienceBean.addJobExperienceToUser}" type="submit" reRender="experienceList" />
				</h:panelGrid>
			</h:form>
</html>